#pragma once
#include <opencv2/highgui/highgui.hpp>
#include <vector>

std::vector<double> CalcHistogram(const cv::Mat &img, int bins, const float range_min, const float range_max);

cv::Mat DrawHistogram(const std::vector<double> &hist, const int threshould = -1);
//cv::Mat DrawHistogram(const cv::Mat &img, int bins, const float range_min, const float range_max);